package com.bao.springboot.mybatis.service;

import com.bao.springboot.mybatis.entity.User;
import com.bao.springboot.mybatis.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author ：baoliangquan
 * @date ：Created in 2019/11/18 0018 14:17
 * @description：
 * @modified By：
 * @version: $
 */
@Component
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public List<User> getAllUser(){
        return userMapper.selectList(null);
    }
}
